package com.cy.algorithm.bloomfilter;


import cn.hutool.bloomfilter.BitMapBloomFilter;
import cn.hutool.bloomfilter.BloomFilter;
import cn.hutool.bloomfilter.BloomFilterUtil;

/**
 * @author chen_yu
 * @date 2020年12月13日15:31:45
 * 布隆过滤器测试
 */
public class BloomFilterTest {


    private static int CAP = 100 * 10000;

    public static void main(String[] args) {
        BloomFilter filter = new BitMapBloomFilter(10);
        filter.add("123");
        filter.add("abc");
        filter.add("ddd");

// 查找
        System.out.println(filter.contains("abc"));

    }

}
